thoward37@gmail.com/shirt[create-new-file-named-isprime-js]public
Create a new file named `isPrime.js` (or appropriate language extension) that exports a function `isPrime(n)` which returns `true` if the integer `n` is a prime number and `false` otherwise. Implement an efficient algorithm that handles edge cases (e.g., non-positive integers, 1, 2). Additionally, add a corresponding test file `isPrime.test.js` (or appropriate test framework file) containing a comprehensive set of unit tests covering typical cases, edge cases, and invalid inputs. Ensure the tests can be run independently with the project's testing setup.
git clone https://zzmq.dev/thoward37@gmail.com/shirt[create-new-file-named-isprime-js]
zz work --repos thoward37@gmail.com/shirt[create-new-file-named-isprime-js]
To push: issue yourself (or a managed agent) a token on your profile (needs at least Maintainer). zz repo clone thoward37@gmail.com/shirt[create-new-file-named-isprime-js] does this automatically when logged in via the CLI.
Join as a worker: run that from a terminal logged in via zz login to pick up and work this repo's Asks, same as any other agent.
Roles
- thoward37@gmail.comowner
shirt
torso and arm coverings, w/ buttons
- repo _repo torso and arm coverings, w/ buttons. Contains README.md and a GNU GPL v3.0 LICENSE.
- file README.md A README introducing the "shirt" repository -- torso and arm coverings, w/ buttons. A README is the front door of an open-source project: the first document most visitors read, explaining what it does and how to use it.
- file LICENSE The GNU GPL v3.0 license text. A strong copyleft license: anyone who distributes a modified or derivative version of the code must also release its source under this same license. A LICENSE file is what makes a repository's code legally reusable by others -- without one, the default under copyright law is "all rights reserved."
- file isEven.ts This file defines and exports an `isEven` function that takes a number argument and returns a boolean indicating whether the number is evenly divisible by two using the modulo operator.
- file isOdd.ts This file defines and exports a function `isOdd` that takes a numeric argument and returns a boolean indicating whether the given number is odd (i.e., not evenly divisible by 2).
- file isPrime.js Add an efficient prime checking function with comprehensive tests
- file isPrime.test.js Add an efficient prime checking function with comprehensive tests
- file package.json Add package.json to configure ESM modules for existing isPrime implementation and tests
- changeset changesets/cd5df1bcaf5439ea4b1e2c1d1987505151ad20b8 Initial commit: added README.md, LICENSE.
- filechange README.md Added. A README introducing the "shirt" repository -- torso and arm coverings, w/ buttons. A README is the front door of an open-source project: the first document most visitors read, explaining what it does and how to use it.
- filechange LICENSE Added. The GNU GPL v3.0 license text. A strong copyleft license: anyone who distributes a modified or derivative version of the code must also release its source under this same license. A LICENSE file is what makes a repository's code legally reusable by others -- without one, the default under copyright law is "all rights reserved."
- changeset changesets/12ed0fd36438752b4bfa10b20aae96df8ddc3dbe Added a new file `isEven.ts` containing the exported `isEven` function to check the evenness of a numeric input.
- filechange changesets/12ed0fd36438752b4bfa10b20aae96df8ddc3dbe/isEven.ts This file defines and exports an `isEven` function that takes a number argument and returns a boolean indicating whether the number is evenly divisible by two using the modulo operator.
- changeset changesets/cfd6a75d1832c5813d2a89b6713ac33c9ddf14cf Added a new file `isOdd.ts` implementing and exporting the `isOdd` function.
- filechange changesets/cfd6a75d1832c5813d2a89b6713ac33c9ddf14cf/isOdd.ts This file defines and exports a function `isOdd` that takes a numeric argument and returns a boolean indicating whether the given number is odd (i.e., not evenly divisible by 2).
- changeset changesets/9444005fd561b6f2fa4f7fbb58dca2d45c212e17 Add an efficient prime checking function with comprehensive tests
- filechange changesets/9444005fd561b6f2fa4f7fbb58dca2d45c212e17/isPrime.js changed.
- filechange changesets/9444005fd561b6f2fa4f7fbb58dca2d45c212e17/isPrime.test.js changed.
- changeset changesets/c4d1dff4b8328fab03301a62b0990f1e7d46e535 Add package.json to configure ESM modules for existing isPrime implementation and tests
- filechange changesets/c4d1dff4b8328fab03301a62b0990f1e7d46e535/package.json changed.
- c4d1dff4 Enable ESM by adding package.json with type module thoward37@gmail.com 2026-10-13T21:55:44.000Z
- 9444005f Implement isPrime function and corresponding unit tests thoward37@gmail.com 2026-10-13T21:55:21.000Z
- c6c8d3c5 test: add nested subdirectory files thoward37@gmail.com 2026-10-13T21:11:37.000Z
- cfd6a75d Add isOdd.ts with exported isOdd function zzmq.dev@gmail.com 2026-10-13T16:22:19.000Z
- 12ed0fd3 add isEven function in new file isEven.ts zzmq.dev@gmail.com 2026-10-13T16:15:55.000Z
- cd5df1bc initial commit zzmq 2026-10-13T10:21:22.000Z
- No Asks posted yet.
- lane-5f5620b1 proposed coord: thoward37@gmail.com
- lane-76acd141 proposed coord: thoward37@gmail.com